/* 主容器布局 */
.machine-container {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-image: url('/background.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
}

/* 主容器布局 - 详情/动态筹划视图时的背景 */
.machine-container-detail {
  background-image: url('../assets/Matchine/background-qs.png');
}

/* 主容器布局 - 决策思维链场景时的背景 */
.machine-container-decision {
  background-image: url('../assets/Matchine/3dbg.png');
}

/* 主要内容区域 */
.content-area {
  flex: 1;
  padding: 6% 3.4% 5% 3.5%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 顶部栏样式 ========== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 20px;
  position: relative;
}

/* 搜索区域 */
.search-section {
  display: flex;
  gap: 20px;
  flex: 1;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 440px;
}

.search-input {
  width: 440px;
  height: 38px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 255, 239, 0.6);
  border-radius: 4px;
  outline: none;
  color: #D4FFEF;
  font-size: 14px;
  padding: 0 15px;
  margin-left: 15px;
}

.search-input::placeholder {
  color: #83a097;
}

/* 查询按钮 */
.query-btn {
  width: 104px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid #06FFB0;
  padding: 6px 12px 6px 16px;
  color: #06FFB0;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.query-btn:hover {
  background: #06FFB0;
  color: #000000;
}

/* 重置按钮 */
.reset-btn {
  width: 104px;
  height: 38px;
  border: 1px solid #D4FFEF;
  padding: 6px 12px 6px 16px;
  border-radius: 4px;
  color: #D4FFEF;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-btn:hover {
  background: #D4FFEF;
  color: #000000;
}

/* 日期选择器 */
.date-picker {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 423px;
}

/* 场景选择器 - 全局右上角定位 */
.scene-selector {
  position: absolute;
  top: 11px;
  right: 24px;
  width: 26px;
  height: 26px;
  z-index: 100;
}

/* 场景选择器 - 详情/动态筹划视图时的位置 */
.scene-selector-detail {
  top: -16px;
  right: 32px;
}

.dropdown-icon {
  width: 26px;
  height: 26px;
  margin-left: 10px;
  transition: transform 0.3s;
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: -11px;
  margin-top: 5px;
  background: #011a18;
  border: 1px solid rgba(212, 255, 239, 0.3);
  border-radius: 4px;
  min-width: 145px;
  z-index: 1000;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #D4FFEF;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.menu-item:hover {
  background: rgba(6, 255, 176, 0.3);
}

.menu-item.active {
  background: rgba(6, 255, 176, 0.6);
  color: #FFFFFF;
}

.menu-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

/* ========== 历史记录列表视图 ========== */
.history-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 424px);
  grid-template-rows: repeat(2, 240px);
  margin-bottom: 4px;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

/* 历史记录卡片 */
.history-card {
  background-image: url('../assets/Matchine/card.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 424px;
  height: 240px;
  transform: none;
  box-sizing: border-box;
}

/* 卡片hover和选中状态 */
.history-card:hover,
.history-card.selected {
  background-image: url('../assets/Matchine/card-select.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  width: 424px;
  height: 240px;
  transform: none;
  box-sizing: border-box;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #D4FFEF;
  margin-bottom: 20px;
  position: absolute;
  top: 16px;
  left: 74px;
  right: 20px;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 55px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-label {
  display: flex;
  align-items: center;
  color: #7ea196;
  font-size: 14px;
  line-height: 16px;
  white-space: nowrap;
  min-width: 80px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #06FFB0;
  border-radius: 50%;
  margin-right: 8px;
}

.info-value {
  color: #d3feee;
  font-size: 14px;
  line-height: 16px;
  flex: 1;
}

.view-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: transparent;
  color: #D4FFEF;
  border: 1px solid #D4FFEF;
  border-radius: 206px;
  padding: 4px 8px 4px 16px;
  font-size: 12px;
  width: 66px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-icon {
  width: 12px;
  height: 12px;
}

/* 卡片hover或选中时，查看按钮样式 */
.history-card:hover .view-btn,
.history-card.selected .view-btn {
  background: #06FFB0;
  color: #000000;
  border: none;
}

/* ========== Element Plus 分页组件样式 ========== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

/* ========== 详情视图 ========== */
.detail-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 动态筹划视图 ========== */
.streaming-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 决策思维链视图 ========== */
.decision-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 空数据状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
}

.empty-icon img {
  width: 192px;
  height: 154px;
  object-fit: contain;
}